package com.dsx.common.bean;

/**
 * Response 返回对象状态码枚举 Created by tianwenqing on 2017/8/21.
 */
public enum ResponseCodeEnum {

    SUCCESS(000, "success"),//成功
    NOT_FOUND(404, "not found"),//数据未找到
    FAIL_EXCEPTION(100, "fail_exception"),//程序抛出异常失败
    FAIL_BUSINESS(200, "fail_business");//业务校验失败

    private int code;//状态码
    private String description;//描述信息

    ResponseCodeEnum(int code, String description) {
        this.code = code;
        this.description = description;
    }


    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }
}
